#ifndef __AMPER_SENSOR
#define __AMPER_SENSOR

#include "config.h"

typedef struct _AmperSensor AmperSensor;

/**
 * @brief 获取电流传感器全局对象
 */
extern AmperSensor *amper_sensor_new_from_global(void);

/**
 * @brief 采集电流传感器的电流值
 */
extern float amper_sensor_get_amper(const AmperSensor *self);

#endif
